
import Vue from 'vue'
import Router from 'vue-router';
import Login from "@/View/Login";
import Home from "@/View/Home";
import AdminInfo from "@/View/AdminInfo";
Vue.use(Router);

export default new Router({
    routes:[{
        path:'/',
        name:'Login',
        component:Login,
        hidden:true
        },
        {
            path:'/home',
            name:'导航一',
            component:Home,
            children:[
                {
                    path: '/userinfo',
                    name: '个人中心',
                    component: AdminInfo
                }
            ]
        }


    ]
})